package com.le.tester.webpage.masterCode;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

/**
 * 描述：乱码
 */
public class MessyCode {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String str = "你好 hello";
        //change to bytes
        byte[] bytes = str.getBytes(StandardCharsets.UTF_8);
        String result = new String(bytes);
        System.out.println(result);
    }
}
